package com.ld.hpfs.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.ld.hpfs.pojo.Invoice;

public interface SplitAndMergeService {
	public int mergeGoods(HashMap<String, Object> param);

	public int mergeClients(HashMap<String, Object> param);
	public ArrayList<HashMap<String, Object>> orderByCustName(HashMap<String, Object> param);

	public int checkMaxValue(HashMap<String, Object> param);

	public int saveSplitManual(HashMap<String, Object> param);
	
	public int splitDetailLine(HashMap<String, Object> param);

	public HashMap<String,Object> splitMaxAount(List<Invoice> listTih,boolean withTrialCalculation);

	public List<Invoice> getInvoiceById(HashMap<String, Object> param);
	
	public int updateDocStateToSplit(HashMap<String, Object> param);
	
	public int revokeSplitMerge(HashMap<String,Object> param);
	
	public ArrayList<HashMap<String,Object>> orderByOrigiDocNo(HashMap<String, Object> param);
	

	public String getOneTouchMake(HashMap<String, Object> param);
	
	public  ArrayList<HashMap<String,Object>> getBrotherDoc(HashMap<String, Object> param);
	
	public  ArrayList<HashMap<String,Object>> getBrotherId(HashMap<String, Object> param);
	
	public void setAuditedVoucher(HashMap<String, Object> param);

	public int mergePostAndNegative(HashMap<String,Object> param);
	
	public int generateDiscount(HashMap<String,Object> param);
	
	public int mergeDetails(HashMap<String,Object> param);

	// 得到手工拆分前单据明细id
	public ArrayList<HashMap<String, Object>> getManualDetailId(
			HashMap<String, Object> param);

}
